<!DOCTYPE html>
<html lang="cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>华东理工大学新闻网</title>
  <%= csrf_meta_tags %>
  <%= stylesheet_link_tag "second_page", :media => "all" %>
  <%= yield :css%>
  <%= javascript_include_tag "second_page" %>
</head>
  <body>
    <%= render "layouts/home/seconder" %>
    <div class="main">
      <%= yield %>
    </div>
    <%= render "layouts/home/footer" %>
    <%= yield :js %>
  </body>
</html>
<script type="text/javascript">
  $(".title_content .nav li a").removeClass("active")
  var class_name = '<%=yield :active_nav %>'
  if(class_name != ""){
    $(".title_content .nav li."+ class_name +" a").addClass("active")
  }  
  /*下拉菜单*/
  $(function(){
    $('.itemsCount').hover(
      function(){
          $(this).children('a').addClass('active');
          $(this).find('.items').show();
      },function(){
          $(this).children('a').removeClass('active');
          $(this).find('.items').hide();  
      }
    );  
  });
</script>